package com.tamtamy.jtta.data.xml;

import org.w3c.dom.Document;

import com.tamtamy.jtta.data.Comment;
import com.tamtamy.jtta.utility.XMLUtility;

public class XMLComment extends Comment{

	public XMLComment(Document xmlDocument){
		super();
		this.id = XMLUtility.getLong(xmlDocument, "id");
		this.contentId = XMLUtility.getLong(xmlDocument, "contentId");
		this.user = XMLUtility.getString(xmlDocument, "user");
		this.creationDate = XMLUtility.getDate(xmlDocument, "creationDate");
		this.comment = XMLUtility.getString(xmlDocument, "comment");
		this.commentPlainText = XMLUtility.getString(xmlDocument, "commentPlainText");
		this.permalink = XMLUtility.getString(xmlDocument, "permalink");
	}	

}
